package com.aaa.fees.controller.api;


import com.aaa.entity.CareHistory;
import com.aaa.fees.service.SendMedicineService;

import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("fees/api/sendmed")
public class ApiSendMedicineController {
   @Autowired
    private SendMedicineService sendMedicineService;
    // 挂号单 查  具体信息  和 发药页面
   @GetMapping("/getid/{regId}")
    public Result<Map<String,Object>> getSendMe(@PathVariable String regId){
       return sendMedicineService.getSendMeId(regId);
   }
//   发药
    @PostMapping("/handleDoMedicine/{itemIds}")
   public Result  handleDoMedicine(@PathVariable String[] itemIds){
    return sendMedicineService.handleDoMedicine(itemIds);
}
}
